package com.xaicode.auth.mapper;

import com.xaicode.auth.base.BaseMapper;
import com.xaicode.auth.constant.DatasourceName;
import com.xaicode.auth.entity.SysPost;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
@DS(DatasourceName.CCM)
public interface SysPostMapper extends BaseMapper<SysPost> {

    List<SysPost> getPostsByUserId(@Param("userId") String userId, @Param("status") Integer status);

}
